package com.lz.dsp.task.common;

import com.lz.common.util.GetCfg;

/**
 * 配置类
 */
public class Config {
    /**
     * zk配置节点路径
     **/
    public static final String ZK_CONFIG_PATH = GetCfg.getString("Zk_Config_path", "/config/lzmh_dsp_task");
    /**
     * zk服务注册节点路径
     **/
    public static final String ZK_SERVER_PATH = GetCfg.getString("Zk_Server_path", "/server/lzmh_dsp_task/lzmh_dsp_task");

    /**
     * kafka listener container factory
     */
    public final static String KAFKA_LISTENER_CONTAINER_FACTORY_SYNC_DSP_CREATIVE = "syncDspCreativeKafkaListenerContainerFactory";
    public final static String KAFKA_LISTENER_CONTAINER_FACTORY_SYNC_DSP_PUT_UNIT_DEV = "syncDspPutUnitDevKafkaListenerContainerFactory";
    public final static String KAFKA_LISTENER_CONTAINER_FACTORY_SYNC_SSPADSLOTRTB = "syncSspAdSlotRtbKafkaListenerContainerFactory";

    /**
     * 表字段-status
     */
    public static String COL_STATUS;

    /**
     * 配置初始化
     */
    public static void init() {
        COL_STATUS = GetCfg.getString("Col_Status", "status");
    }
}
